//
//  ViewController.m
//  TableAlertDemo
//
//  Created by Tianlong on 2018/1/26.
//  Copyright © 2018年 Tianlong. All rights reserved.
//

#import "ViewController.h"
#import "QuizTalkAlert.h"

@interface ViewController ()
@property (strong, nonatomic) QuizTalkAlert *alert;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (IBAction)show:(id)sender {
    //self.alert = [QuizTalkAlert alertInWindowWithInfo:nil];
    self.alert = [QuizTalkAlert alertInView:self.view info:nil];
    [self.alert showWithAnimate:YES];
}
- (IBAction)dismiss:(id)sender {
    [self.alert dismissWithAnimate:NO];
    self.alert = nil;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
}


@end
